﻿using Cmp.Web.Common;
using Cmp.Web.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmp.Web.IRepository
{
    /// <summary>
    /// 患者接口
    /// </summary>
    public interface IPatientProvide
    {
        /// <summary>
        /// 根据患者Id获取患者信息
        /// </summary>
        /// <param name="exception"></param>
        /// <returns></returns>
        Task<PatientInfo> GetPatientInfoByPatientId(string patientId,out ExceptionAll exception);
        /// <summary>
        /// 根据卡类型卡号获取患者信息
        /// </summary>
        /// <param name="CardType"></param>
        /// <param name="CardNum"></param>
        /// <param name="exception"></param>
        /// <returns></returns>
        Task<PatientInfo> GetPatientInfoByCard(CardType CardType, string CardNum, out ExceptionAll exception);
        /// <summary>
        /// 患者建档
        /// </summary>
        /// <param name="patient"></param>
        /// <param name="exception"></param>
        /// <returns></returns>
        Task<bool> PatientDocumentation(PatientInfo patient, out ExceptionAll exception);
    }
}
